import { post , upload , get , put , del } from "../request";
const VERSION = 'v1'
// 登录
export const login= data => post(`/${VERSION}/login`, data);
// 注册
export const register= data => post(`/${VERSION}/register`, data);
// 退出
export const logout = data => get(`/${VERSION}/logout`, data);
// 发验证码
export const sms = data => post(`/${VERSION}/dp/sms`, data);
// 保存标签和喜欢
export const complete = data => post(`/${VERSION}/user/complete`, data);
// 保存头像,昵称
export const saveHead = data => post(`/${VERSION}/user`, data);
// 修改用户信息
export const updateUser = data => put(`/${VERSION}/user`, data);
// 获取oss上传参数
export const loadOssOption = data => get(`/${VERSION}/configuration/forblockette`, data);
// 加载用户信息
export const loadUserInfo = data => get(`/${VERSION}/user`, data);
// 我要上屏
export const onSceen = data => post(`/${VERSION}/publish_apply`, data);
// 查询上屏结果
export const onSceenState = data => get(`/${VERSION}/publish_apply`, data);
// 实名
export const userVerified = data => put(`/${VERSION}/user/identification`, data);
// 意见反馈
export const feedBack = data => post(`/${VERSION}/feed_back`, data);
// 获取版本
export const loadVersion = data => get(`/${VERSION}/app_version`, data);
// 获取认证结果
export const certificationResult = data => get(`/${VERSION}/user/certification`, data);
